﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ElectronicRecords.Models.Specialists>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Новый специалист
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Новый специалист</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Данные специалиста</legend>
                        
            
            <div class="editor-label">
                <%: Html.Label("Фамилия") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Firstname) %>
                <%: Html.ValidationMessageFor(model => model.Firstname) %>
            </div>
            
            <div class="editor-label">
                <%: Html.Label("Имя") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Lastname) %>
                <%: Html.ValidationMessageFor(model => model.Lastname) %>
            </div>
            
            <div class="editor-label">
                <%: Html.Label("Email") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Email) %>
                <%: Html.ValidationMessageFor(model => model.Email) %>
            </div>
            
            <div class="editor-label">
                <%: Html.Label("Контактный телефон") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Phone) %>
                <%: Html.ValidationMessageFor(model => model.Phone) %>
            </div>
            
            
            
            <p>
                <input type="submit" value="Создать" class="g-button" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Назад к списку", "List", new { }, new { @class="g-button"})%>
    </div>

</asp:Content>

